using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Lutos;
using Lutos.Control;
using System.Text;

namespace Web.Opt
{
    public partial class checkfavoopt : Lutos.Control.PageUtilities
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int uid = this.SesUserID,
            cid = this.GetParamInt("cid"),
            rid = this.GetParamInt("rid");
            System.Text.StringBuilder sb = new StringBuilder();
            if (uid != 2)
            {
                sb.Append("fail");
            }
            else
            {
                if (this.AppFavoAdapter.CheckFavo(uid, rid, cid) == true)
                {
                    sb.Append("succ");
                }
                else
                {
                    sb.Append("fail");
                }
            }
            this.Page.Response.Output.Write(sb.ToString());
        }
    }
}
